﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="HappyClubInterestSrhForm.aspx.cs" Inherits="App_Input_HappyClubInterestSrhForm"
    Title="兴趣排名查询" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <script language="javascript" type="text/javascript">
        function openDetail(interestDictNo,interestName){
            var url ="";
            var url  = "../Search/MemberInterestPopForm.aspx";
            var prm;	            
            prm = "?Dict_No=" + interestDictNo+"&INTEREST_NAME="+interestName;                         
            url += prm;	        
            var win = window.open(url,'_blank','scrollbars,resizable,height=470,width=550');
            win.focus();	        	        
        }
    </script>
        <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6">

                            <script language="javascript">
                                (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10%; background: #ffffff" height="24"></td>
                        <td style="width: 10%; background: #ffffff" class="list_data_bg_left" nowrap></td>
                        <td style="width: 15%; background: #ffffff" align="left">&nbsp;兴趣（关键字）：</td>
                        <td style="width: 25%;background: #ffffff" class="list_data_bg_left" nowrap>&nbsp;<asp:TextBox ID="txtName"
                            runat="server" MaxLength="32" Width="110px"></asp:TextBox></td>
                        <td align="left" style="width: 15%;background: #ffffff"></td>
                        <td style="width: 10%; background: #ffffff"></td>
                    </tr>
                    <tr>
                        <td style="background: #ffffff" height="25"></td>
                        <td align="left" style="background: #ffffff; height: 24px;" class="list_data_bg_left" nowrap></td>
                        <td align="left" style="background: #ffffff; height: 24px;" nowrap>&nbsp;兴趣排名（根据人数）：</td>
                        <td style="background: #ffffff; height: 24px;" class="list_data_bg_left" nowrap>&nbsp;<asp:RadioButtonList
                            ID="lstSort" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="109px">
                            <asp:ListItem Selected="True" Value="0">升序</asp:ListItem>
                            <asp:ListItem Value="1">降序</asp:ListItem>
                        </asp:RadioButtonList></td>
                        <td align="left" style="background: #ffffff; height: 24px;">&nbsp;</td>
                        <td align="right" style="background: #ffffff; height: 24px;"></td>
                    </tr>
                </table>
            </td>
        </tr>
            <tr>
                <td></td>
            </tr>
        <tr>
            <td align="center">
                &nbsp;<asp:Button ID="btnSearch" runat="server" Text=" 检 索 " CssClass="button" OnClick="btnSearch_Click" /></td>
        </tr>
    </table>
    <div id="Div1">
        <table width="100%">
            <tr>
                <td align="left">

                    <script language="javascript">
                                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="viewSrhRst" runat="server" AutoGenerateColumns="False"
                        CssClass="GridView_table" DataKeyNames="InterestDictId" BorderStyle="Solid"
                        OnRowDataBound = "viewSrhRst_RowDataBound"  
                        BorderWidth="3px" EnableViewState="False">
                        <Columns>
                            <asp:BoundField HeaderText="兴趣编号" DataField="InterestDictId"  Visible="false">
                                <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="排名">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="兴趣" DataField="InterestName">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="兴趣人数" DataField="InterestCount">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>                            
                            <asp:TemplateField HeaderText="详细" ShowHeader="False">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="5%" />
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="false" CommandName="Details"
                                        ImageUrl="~/images/info.gif" Text="详细" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>                        
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
